﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    Inherits="masterdata_Customer_Product_Choose" CodeFile="Customer_Product_Choose.aspx.cs" %>

<%@ Register src="../UserControl/GridPager.ascx" tagname="GridPager" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>仓库产品列表</title>
    <script src="../JavaScript/empchecks.js" type="text/javascript"></script>
   </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" colspan="6">
                    查询条件
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    制造商:
                </td>
                <td>
                    <asp:DropDownList ID="ddlManu" runat="server" Width="130" AutoPostBack="True" OnSelectedIndexChanged="ddlManu_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    品类:
                </td>
                <td>
                    <asp:DropDownList ID="ddlCategroy" runat="server" Width="130" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlCategroy_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    品牌:
                </td>
                <td>
                    <asp:DropDownList ID="ddlBrand" runat="server" Width="130">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    是否包含:
                </td>
                <td nowrap="nowrap" >
                    <asp:DropDownList runat="server" ID="ddlSelected" Width="130">
                        <asp:ListItem Text="--所有--" Value="0"></asp:ListItem>
                        <asp:ListItem Text="已包含" Value="1"></asp:ListItem>
                        <asp:ListItem Text="未包含" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                <asp:HiddenField runat="server" ID="hdfWareHouseCode" />
                </td>
                <td class="buttonarea" colspan="3">
                    <asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="查  询" OnClick="btnQuery_Click" />
                    &nbsp;&nbsp;
                    <input  type="button" class="wsd_button2" size="47" value="重  置" name="reset" onclick="clearForm('form1')"/>
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle">
                    产品列表&nbsp; 仓库:
                    <asp:Label ID="lblWarehousename" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView BorderWidth="0" Width="100%" ID="GridView1" runat="server" 
                        AutoGenerateColumns="False" EmptyDataText="没有可显示的数据." 
                    EmptyDataRowStyle-Font-Bold="true" 
                        EmptyDataRowStyle-HorizontalAlign="Center"   OnRowDataBound="Grid_RowDataBound" 
                        EnableEmptyContentRender="true"  DataKeyNames="ID,PRODUCT_LOCATION_ID" 
                        AllowPaging="True" PageSize="8">
                        <HeaderStyle CssClass="titlist" />

<EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:BoundField HeaderText="产品代码" DataField="ProductCode" ItemStyle-Width="8%" />
                            <asp:BoundField HeaderText="产品名称" DataField="ProductName" ItemStyle-Width="10%" />
                            <asp:BoundField DataField="ShortProductName" HeaderText="产品简称" ItemStyle-Width="8%"/>
                            <asp:BoundField DataField="BrandName" HeaderText="品牌"  ItemStyle-Width="8%"/>
                            <asp:BoundField DataField="CategoryName" HeaderText="品类"  ItemStyle-Width="8%"/>
                            <asp:BoundField DataField="ManufactureName" HeaderText="制造商"  ItemStyle-Width="10%"/>
                            <asp:BoundField DataField="PIECE_PRICE" HeaderText="支价" DataFormatString="{0:N2}" ItemStyle-Width="6%"/>
                            <asp:BoundField DataField="CASE_PRICE" HeaderText="箱价" DataFormatString="{0:N2}"  ItemStyle-Width="6%"/>
                            <asp:BoundField DataField="WEIGHT" HeaderText="重量" DataFormatString="{0:N2}"  ItemStyle-Width="6%"/>
                            <asp:BoundField DataField="VOLUME" HeaderText="体积" DataFormatString="{0:N2}" ItemStyle-Width="6%" />
                            <asp:BoundField DataField="DENOMINATOR" HeaderText="1箱?支"  ItemStyle-Width="6%"/>
                            <asp:TemplateField HeaderText="搁置" ItemStyle-Width="6%">
                                <ItemTemplate>
                                    <asp:CheckBox ID="IsOnHold" runat="server" ItemStyle-Width="6%" Checked='<%# Eval("ON_HOLD") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate >
                                    <input  type="checkbox" id="chkAll" name="chkAll" onclick="Check1(this,'chkInclude')" />全选
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkInclude" runat="server" Checked='<%# Convert.ToBoolean(Eval("Selected")) %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings Visible="false" />
                    </asp:GridView>
                    <br />
                    <uc1:GridPager ID="GridPager1" runat="server" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" >
                    操作选项
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <asp:Button ID="btnAdd" runat="server" class="wsd_button2" Text="提  交" OnClick="btnAdd_Click" />
                    &nbsp;&nbsp;
                    <input class="wsd_button2" onclick="location.href='Warehouse_Locations_List.aspx'" 
                            type="button" value="返  回" />
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>
